package com.orilife.message;

import com.example.orllife.CoolMakingApplication;
import com.example.orllife.R;
import com.orilife.adapter.NewFriendsMessageAdapter;


import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;
import android.widget.ListView;

public class CircleNotifyMessageActivity extends Activity {
	Button backBt;
	ListView quanziListView;
	NewFriendsMessageAdapter adapter;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.messagequanzilayout);
		CoolMakingApplication.getInstance().addActivity(this);
		backBt = (Button)findViewById(R.id.backbt);
		quanziListView = (ListView)findViewById(R.id.quanzilistview);
		adapter  = new NewFriendsMessageAdapter(CircleNotifyMessageActivity.this);
		
		backBt.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				CircleNotifyMessageActivity.this.finish();
			}
		});
		quanziListView.setAdapter(adapter);
		
	}
	
	@Override
	public void finish() {
		// TODO Auto-generated method stub
		super.finish();
		CoolMakingApplication.getInstance().removeActivity(this);
	}

}
